|
|
|
|
|
|
|
(table continued from previous page) |
|
|
|
|
| Controls | Properties | Settings | | Caption | "Label7" | | Height | 255 | | Left | -71040 | | TabIndex | 15 | | Top | 360 | | Width | 2400 | | VB.Label | Name | lbluserID | | BorderStyle | 1 'Fixed Single | | Caption | "Label6" | | Height | 255 | | Left | -74880 | | TabIndex | 14 | | Top | 360 | | Width | 2400 |
|
|
|
|
|
|
After you add the data-bound grid objects to the form, you need to set some of their properties using the pop-up menu. Select the dbgDefault grid and click the alternate mouse button. Then select Retrieve Fields to load the fields. Now click the alternate button again and select Properties and click the Columns tab. Make the User ID column invisible. Perform the same steps for the dbgUserID data grid. Save the project before you add the code. |
|
|
|
|
|
|
|
|
The first step in coding the User Access Rights page is to add three form-level variables to the User Maintenance Form. |
|
|
|
|
|
|
|
|
Option Explicit
'
' user maint and login vars
Dim objRec As Object
Dim lgnResult As Long
Public strDBName As String
'
'***new >>> access rights vars
Dim strSQLDefault As String
Dim strSQLUserID As String
Public intRights As Integer |
|
|
|
|
|
|
|
|
Next, add the code in Listing 21.21 to the SSTab1_Click event. This code fills out the rights form for the selected user. |
|
|
|
|
|